[Bridge] fix input parameter value storage
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
c642fca0d0
commit
729cbadc77
1 changed files with 4 additions and 5 deletions
|
@ -248,8 +248,8 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||||
foreach($this->parameters as $context=>$set){
|
foreach($this->parameters as $context=>$set){
|
||||||
$queriedContexts[$context]=null;
|
$queriedContexts[$context]=null;
|
||||||
foreach($set as $id=>$properties){
|
foreach($set as $id=>$properties){
|
||||||
if(isset($properties['value']) &&
|
if(isset($this->inputs[$context][$id]['value']) &&
|
||||||
!empty($properties['value'])){
|
!empty($this->inputs[$context][$id]['value'])){
|
||||||
$queriedContexts[$context]=true;
|
$queriedContexts[$context]=true;
|
||||||
}elseif(isset($properties['required']) &&
|
}elseif(isset($properties['required']) &&
|
||||||
$properties['required']===true){
|
$properties['required']===true){
|
||||||
|
@ -314,7 +314,6 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||||
foreach($this->parameters as $context=>$set){
|
foreach($this->parameters as $context=>$set){
|
||||||
if(isset($this->parameters[$context][$name])){
|
if(isset($this->parameters[$context][$name])){
|
||||||
$this->inputs[$context][$name]['value']=$value;
|
$this->inputs[$context][$name]['value']=$value;
|
||||||
$this->parameters[$context][$name]['value']=$value;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -339,8 +338,8 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||||
if(!isset($properties['type'])){
|
if(!isset($properties['type'])){
|
||||||
$this->parameters[$context][$name]['type']='text';
|
$this->parameters[$context][$name]['type']='text';
|
||||||
}
|
}
|
||||||
if(isset($properties['value'])){
|
if(isset($this->inputs[$context][$name]['value'])){
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch($properties['type']){
|
switch($properties['type']){
|
||||||
case 'checkbox':
|
case 'checkbox':
|
||||||
|
|
Loading…
Reference in a new issue