projects
/
infodrom
/
hallinta
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0038bc0
)
Support mask specific insert functions
author
Joey Schulze
<joey@infodrom.org>
Wed, 10 Mar 2010 20:08:55 +0000
(21:08 +0100)
committer
Joey Schulze
<joey@infodrom.org>
Wed, 10 Mar 2010 20:08:55 +0000
(21:08 +0100)
ajax/ajax.php
patch
|
blob
|
history
diff --git
a/ajax/ajax.php
b/ajax/ajax.php
index
69f1167
..
95e2034
100644
(file)
--- a/
ajax/ajax.php
+++ b/
ajax/ajax.php
@@
-137,6
+137,9
@@
function save($mask)
function insert($mask)
{
+ if (array_key_exists('insert', $mask))
+ return $mask['insert']($mask);
+
$fields = array('sys_user','sys_edit');
$values = array("'".pg_escape_string($_SESSION['sys']['login'])."'", 'now()');