Jump to content


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

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 14 May 2016 - 04:17 PM

Hello
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 

Captussssssre.PNG







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