projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rose-Beziehungstypen gefixt
[kivitendo-erp.git]
/
SL
/
DB
/
Object.pm
diff --git
a/SL/DB/Object.pm
b/SL/DB/Object.pm
index
d1e6cb0
..
d176a1f
100755
(executable)
--- a/
SL/DB/Object.pm
+++ b/
SL/DB/Object.pm
@@
-120,6
+120,8
@@
sub save {
1;
};
SL::DB::Object::Hooks::run_hooks($self, 'after_save', $result);
1;
};
SL::DB::Object::Hooks::run_hooks($self, 'after_save', $result);
+
+ return $result;
};
$self->db->in_transaction ? $worker->() : $self->db->do_transaction($worker);
};
$self->db->in_transaction ? $worker->() : $self->db->do_transaction($worker);
@@
-140,6
+142,8
@@
sub delete {
1;
};
SL::DB::Object::Hooks::run_hooks($self, 'after_delete', $result);
1;
};
SL::DB::Object::Hooks::run_hooks($self, 'after_delete', $result);
+
+ return $result;
};
$self->db->in_transaction ? $worker->() : $self->db->do_transaction($worker);
};
$self->db->in_transaction ? $worker->() : $self->db->do_transaction($worker);