Skip to content

Commit

Permalink
Update 2.2.20240317
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilkware committed Mar 17, 2024
1 parent f5242c2 commit d67a5d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Abfall_IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,15 +596,15 @@ protected function OnChangeClient($id)
$this->SendDebug(__FUNCTION__, $io);
// Bad fix for cities only!!!
if ($io[self::IO_ACTION] == self::ACTION_STREET) {
$this->SendDebug(__FUNCTION__,'Hide place & district');
$this->SendDebug(__FUNCTION__, 'Hide place & district');
$this->UpdateFormField('placeID', 'visible', false);
$this->UpdateFormField('districtID', 'visible', false);
// Fix Options
if ($io[self::IO_PLACE] == '') {
$this->SendDebug(__FUNCTION__,'Place == null');
$this->SendDebug(__FUNCTION__, 'Place == null');
$this->UpdateFormField('placeID', 'value', 'null');
} else {
$this->SendDebug(__FUNCTION__,'Place == ' . $io[self::IO_PLACE]);
$this->SendDebug(__FUNCTION__, 'Place == ' . $io[self::IO_PLACE]);
$options[] = ['caption' => $this->Translate('Please select ...') . str_repeat(' ', 79), 'value' => $io[self::IO_PLACE]];
$this->UpdateFormField('placeID', 'options', json_encode($options));
$this->UpdateFormField('placeID', 'value', $io[self::IO_PLACE]);
Expand Down Expand Up @@ -1027,7 +1027,7 @@ protected function ExecuteAction(&$io)
$this->SendDebug(__FUNCTION__, 'Hidden: ' . $name . ':' . $value);
}
$inputs = $res->query("//input[@type='text']");
foreach($inputs as $input){
foreach ($inputs as $input) {
$items = [];
$name = $input->getAttribute('name');
$action = $input->getAttribute('awk-data-onchange-submit-waction');
Expand Down

0 comments on commit d67a5d6

Please sign in to comment.