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
|
<?php
|
||||||
if (isset($where_clause)) {
|
if (isset($where_clause)) {
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $strSave; ?>"><?php echo $strSave; ?></option>
|
<option value="save"><?php echo $strSave; ?></option>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $strInsertAsNewRow; ?>"><?php echo $strInsertAsNewRow; ?></option>
|
<option value="insert"><?php echo $strInsertAsNewRow; ?></option>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
echo "\n";
|
echo "\n";
|
||||||
|
@@ -138,7 +138,7 @@ if (isset($_REQUEST['where_clause'])) {
|
|||||||
// we were editing something => use the WHERE clause
|
// we were editing something => use the WHERE clause
|
||||||
$loop_array = (is_array($_REQUEST['where_clause']) ? $_REQUEST['where_clause'] : array($_REQUEST['where_clause']));
|
$loop_array = (is_array($_REQUEST['where_clause']) ? $_REQUEST['where_clause'] : array($_REQUEST['where_clause']));
|
||||||
$using_key = true;
|
$using_key = true;
|
||||||
$is_insert = ($_REQUEST['submit_type'] == $GLOBALS['strInsertAsNewRow']);
|
$is_insert = ($_REQUEST['submit_type'] == 'insert');
|
||||||
} else {
|
} else {
|
||||||
// new row => use indexes
|
// new row => use indexes
|
||||||
$loop_array = array();
|
$loop_array = array();
|
||||||
|
Reference in New Issue
Block a user