⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠

set_relation_n_n priority field when add

set_relation_n_n priority_field default_order add

  • Please log in to reply
No replies to this topic

#1 Abdullah Alshiekha

Abdullah Alshiekha


  • Members
  • Pip
  • 1 posts

Posted 14 May 2016 - 04:17 PM

I have a question about set_relation_n_n priority field 
my code is :

$crud->set_relation_n_n('Bus_Stops','busstops_route','busstops','route_id', 'busstops_id','{busstops_name}','order');

when I add a new item it is by default taking alphabetical order of the busstops_name field but when I drag and drop any busstop up or down in the menu it is taking the order as i want . 

my question is how can I stop default ordering by busstops_name field and make it take the order as I clicked on the items

I have attached the photo 
Thank You in advance 


Also tagged with one or more of these keywords: set_relation_n_n, priority_field, default_order, add

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users