projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Select item not working in purchase order and sales order entry. Fixed.
[fa-stable.git]
/
includes
/
ui
/
simple_crud_class.inc
diff --git
a/includes/ui/simple_crud_class.inc
b/includes/ui/simple_crud_class.inc
index daf93321989c0225d5c76e627ea28476b5790519..40c8ebea6b29b5653b2a746284015329473dee33 100644
(file)
--- a/
includes/ui/simple_crud_class.inc
+++ b/
includes/ui/simple_crud_class.inc
@@
-26,7
+26,7
@@
class simple_crud {
var $dec;
//
//
var $dec;
//
//
- function
simple_crud
($name, $fields = null)
+ function
__construct
($name, $fields = null)
{
$this->name = $name;
$this->pre_handlers = array(
{
$this->name = $name;
$this->pre_handlers = array(
@@
-106,8
+106,6
@@
class simple_crud {
{
global $Ajax;
{
global $Ajax;
- $sel_name = $this->name.'_id';
-
// list controls lookup
foreach (array_keys($this->pre_handlers) as $m) {
if (isset($_POST[$this->name.$m])) {
// list controls lookup
foreach (array_keys($this->pre_handlers) as $m) {
if (isset($_POST[$this->name.$m])) {
@@
-211,9
+209,9
@@
class simple_crud {
if ($async === 'both') {
$async = 'default'; $cancel = 'cancel';
}
if ($async === 'both') {
$async = 'default'; $cancel = 'cancel';
}
- else
if ($async === 'default')
+ elseif ($async === 'default')
$cancel = true;
$cancel = true;
- else
if ($async === 'cancel')
+ elseif ($async === 'cancel')
$async = true;
echo "<center>";
$async = true;
echo "<center>";