projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed redundant $sign in reports Sales Order, Sales Quotation and Purchase Order
[fa-stable.git]
/
includes
/
ui
/
ui_input.inc
diff --git
a/includes/ui/ui_input.inc
b/includes/ui/ui_input.inc
index b15ba10e5af23a10ad0425f6831376fa9c905481..d2854d865b6e4d01fd684f756b5472b38b2e7829 100644
(file)
--- a/
includes/ui/ui_input.inc
+++ b/
includes/ui/ui_input.inc
@@
-159,6
+159,7
@@
function submit($name, $value, $echo=true, $title=false, $atype=false, $icon=fal
if ($icon===false) $icon=ICON_ESCAPE; break;
case 'nonajax':
if ($icon===false) $icon=ICON_ESCAPE; break;
case 'nonajax':
+ case 'download':
$atype = false;
}
}
$atype = false;
}
}
@@
-304,7
+305,7
@@
function button($name, $value, $title=false, $icon=false, $aspect='')
if ($value == _("Delete")) // Helper during implementation
$icon = ICON_DELETE;
return "<button type='submit' class='editbutton' name='"
if ($value == _("Delete")) // Helper during implementation
$icon = ICON_DELETE;
return "<button type='submit' class='editbutton' name='"
- .html
entities
(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
+ .html
_specials_encode
(strtr($name, array('.'=>'=2E', '='=>'=3D',// ' '=>'=20','['=>'=5B'
)))
."' value='1'" . ($title ? " title='$title'":" title='$value'")
. ($aspect ? " aspect='$aspect'" : '')
)))
."' value='1'" . ($title ? " title='$title'":" title='$value'")
. ($aspect ? " aspect='$aspect'" : '')
@@
-347,9
+348,7
@@
function select_button_cell($name, $value, $title=false)
function check_value($name)
{
function check_value($name)
{
- if (!isset($_POST[$name]) || $_POST[$name]=='')
- return 0;
- return 1;
+ return (empty($_POST[$name]) ? 0 : 1);
}
function checkbox($label, $name, $value=null, $submit_on_change=false, $title=false)
}
function checkbox($label, $name, $value=null, $submit_on_change=false, $title=false)
@@
-728,7
+727,7
@@
function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit
if (empty($_POST[$name.'_list'])) // restore refline id
$_POST[$name.'_list'] = $Refs->reflines->find_refline_id(empty($_POST[$name]) ? $init : $_POST[$name], $type);
if (empty($_POST[$name.'_list'])) // restore refline id
$_POST[$name.'_list'] = $Refs->reflines->find_refline_id(empty($_POST[$name]) ? $init : $_POST[$name], $type);
- if (empty($_POST[$name])
|| ($_SERVER['REQUEST_METHOD'] == 'GET')
) // initialization
+ if (empty($_POST[$name])) // initialization
{
if (isset($init))
{
{
if (isset($init))
{
@@
-740,7
+739,7
@@
function ref_cells($label, $name, $title=null, $init=null, $params=null, $submit
}
if (check_ui_refresh($name)) { // call context changed
}
if (check_ui_refresh($name)) { // call context changed
- $_POST[$name] = $Refs->normalize($
init
, $type, $context, $_POST[$name.'_list']);
+ $_POST[$name] = $Refs->normalize($
_POST[$name]
, $type, $context, $_POST[$name.'_list']);
$Ajax->addUpdate(true, $name, $_POST[$name]);
}
$Ajax->addUpdate(true, $name, $_POST[$name]);
}