@@ 655-658 (lines=4) @@ | ||
652 | $pageAction = isset($_REQUEST[self::getDbTable() . '_action']) ? sanitize_text_field($_REQUEST[self::getDbTable() . '_action']) : ''; |
|
653 | $requestFormValue = isset($_REQUEST[self::currentPageCode][$input_def['label']]) ? sanitize_text_field($_REQUEST[self::currentPageCode][$input_def['label']]) : ''; |
|
654 | $currentFieldValue = $input_def['value']; |
|
655 | if(is_object($editedItem)) |
|
656 | $currentFieldValue = $editedItem->{$input_def['label']}; |
|
657 | elseif(($pageAction != '') && ($requestFormValue != '')) |
|
658 | $currentFieldValue = $requestFormValue; |
|
659 | ||
660 | if($input_def['label'] == 'status'){ |
|
661 | if(in_array('notused', $input_def['possible_value'])){ |
@@ 419-424 (lines=6) @@ | ||
416 | $pageAction = isset($_REQUEST[self::getDbTable() . '_action']) ? sanitize_text_field($_REQUEST[self::getDbTable() . '_action']) : ''; |
|
417 | $requestFormValue = isset($_REQUEST[self::currentPageCode][$input_def['name']]) ? sanitize_text_field($_REQUEST[self::currentPageCode][$input_def['name']]) : ''; |
|
418 | $currentFieldValue = $input_def['value']; |
|
419 | if(is_object($editedItem)){ |
|
420 | $currentFieldValue = $editedItem->{$input_def['name']}; |
|
421 | } |
|
422 | elseif(($pageAction != '') && ($requestFormValue != '')){ |
|
423 | $currentFieldValue = $requestFormValue; |
|
424 | } |
|
425 | ||
426 | $input_def['value'] = $currentFieldValue; |
|
427 | if($input_def['name'] == 'group_id'){ |
|
@@ 762-767 (lines=6) @@ | ||
759 | $pageAction = isset($_REQUEST[WPSHOP_DBT_ATTRIBUTE_UNIT_GROUP . '_action']) ? wpshop_tools::varSanitizer($_REQUEST[WPSHOP_DBT_ATTRIBUTE_UNIT_GROUP . '_action']) : ''; |
|
760 | $requestFormValue = isset($_REQUEST[self::currentPageCode][$input_def['name']]) ? wpshop_tools::varSanitizer($_REQUEST[self::currentPageCode][$input_def['name']]) : ''; |
|
761 | $currentFieldValue = $input_def['value']; |
|
762 | if(is_object($editedItem)){ |
|
763 | $currentFieldValue = $editedItem->{$input_def['name']}; |
|
764 | } |
|
765 | elseif(($pageAction != '') && ($requestFormValue != '')){ |
|
766 | $currentFieldValue = $requestFormValue; |
|
767 | } |
|
768 | ||
769 | $input_def['value'] = $currentFieldValue; |
|
770 |