WTF isnt the shipment register saving stuff??

This commit is contained in:
Karl Cordes 2011-05-02 09:13:13 +10:00
parent 1f58e31e48
commit fc57e42ffc

View file

@ -36,7 +36,7 @@ class ShipmentsController extends AppController {
function ajax_edit() {
$this->layout = 'ajax';
print_r($this->data);
if(!empty($this->data)) {
if ($this->Shipment->saveAll($this->data)) {
echo "SUCCESS";
@ -48,7 +48,7 @@ class ShipmentsController extends AppController {
}
else {
echo "FAILURE";
echo "NO-DATA";
return;
}