Do not use translated messages for values, rather use hardcoded strings.
This way we avoid possible breakage on language change.
This commit is contained in:
@@ -1101,11 +1101,11 @@ foreach ($rows as $row_id => $vrow) {
|
||||
<?php
|
||||
if (isset($where_clause)) {
|
||||
?>
|
||||
<option value="<?php echo $strSave; ?>"><?php echo $strSave; ?></option>
|
||||
<option value="save"><?php echo $strSave; ?></option>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $strInsertAsNewRow; ?>"><?php echo $strInsertAsNewRow; ?></option>
|
||||
<option value="insert"><?php echo $strInsertAsNewRow; ?></option>
|
||||
</select>
|
||||
<?php
|
||||
echo "\n";
|
||||
|
@@ -138,7 +138,7 @@ if (isset($_REQUEST['where_clause'])) {
|
||||
// we were editing something => use the WHERE clause
|
||||
$loop_array = (is_array($_REQUEST['where_clause']) ? $_REQUEST['where_clause'] : array($_REQUEST['where_clause']));
|
||||
$using_key = true;
|
||||
$is_insert = ($_REQUEST['submit_type'] == $GLOBALS['strInsertAsNewRow']);
|
||||
$is_insert = ($_REQUEST['submit_type'] == 'insert');
|
||||
} else {
|
||||
// new row => use indexes
|
||||
$loop_array = array();
|
||||
|
Reference in New Issue
Block a user