From: Andrey Kutejko Date: Tue, 7 May 2013 18:06:11 +0000 (+0300) Subject: admin: rework reordering, allow to reorder inlines X-Git-Tag: 0.6~131 X-Git-Url: https://git.andy128k.dev/?a=commitdiff_plain;h=cf9af11ad7aeab7b571f855acaa1bbde79ab1c79;p=ipf-legacy-orm.git admin: rework reordering, allow to reorder inlines --- diff --git a/ipf/orm/record.php b/ipf/orm/record.php index 3510d9d..ec67315 100644 --- a/ipf/orm/record.php +++ b/ipf/orm/record.php @@ -1303,15 +1303,5 @@ abstract class IPF_ORM_Record extends IPF_ORM_Record_Abstract implements Countab return $this->_custom[$name]; return null; } - - public function _reorder($ids, $ord_field, $drop_id, $prev_ids, $ord=1) - { - foreach($ids as $id) { - $item = $this->getTable()->find($id); - $item[$ord_field] = $ord; - $item->save(); - $ord++; - } - } }