mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-24 09:08:42 -04:00
Fix read_only flag issue (#1003)
This commit is contained in:
1 parent
2727e91c96
commit
c5988adbbb
1 file changed
+2
-2
@@ -121,11 +121,11 @@ function transform_headers_readonly($array)
|
||||
return json_encode($result);
|
||||
}
|
||||
|
||||
function transform_headers($array)
|
||||
function transform_headers($array, $readonly = FALSE)
|
||||
{
|
||||
$result = array();
|
||||
|
||||
if (!readonly)
|
||||
if (!$readonly)
|
||||
{
|
||||
$array = array_merge(array(array('checkbox' => 'select', 'sortable' => FALSE)), $array);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user