⚠ In case you've missed it, we have migrated 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 is an archived forum. ⚠

  •     

profile picture

A searching at "set_relation_n_n" field



Kenta Saito
  • profile picture
  • Member

Posted 05 April 2012 - 08:51 AM

Version: grocery_CRUD_v1.2.zip
Theme: flexigrid

A searching at "set_relation" field works.
(Search: 'Jones' 'from Employeer' at Customers)

A searching at "set_relation_n_n" field doesn't work.
(Search: 'GUINESS' 'Actors' at Films)

If it can. Would you show me a tips for that?
Using hook? Overwrite part of the library?


I'd like to apologize for my English.

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 05 April 2012 - 09:21 AM

This is a known issue ( http://www.grocerycr...on/known-issues ) and it is already tracked at github ( https://github.com/scoumbourdis/grocery-crud/issues/13 ). It has not yet any hook for this. I will try to fix it as for the next version.

Thanks to mention it though.

Kenta Saito
  • profile picture
  • Member

Posted 05 April 2012 - 09:40 AM

Thank you for your quick reply, Johnny!

Kenta Saito
  • profile picture
  • Member

Posted 06 April 2012 - 03:53 AM

Can I have anoter related question?

Instead "set_relation_n_n" field, I'm planning to use (MySQL's)"SET" field. (like mulpiple "ENUM")

A Searching "SET" field (by like"%...%") works.
A interface for "ENUM" field (for Add and Edit) also works.
Is there a interface for "SET" field (for Add and Edit) ? (or it will be?)

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 06 April 2012 - 07:31 AM

For now there is not an interface for SET type but probably I will add this in the long run.

Kenta Saito
  • profile picture
  • Member

Posted 06 April 2012 - 14:58 PM

Thanks. I'll try to make an interface for that too.

Kenta Saito
  • profile picture
  • Member

Posted 07 April 2012 - 02:23 AM

I made An interface for SET type field.

/topic/282-an-interface-for-set-type/

It works on grocery CRUD's "examples". (Table: "film", Field: "special_features")

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 07 April 2012 - 11:40 AM

Thank you very much [member='Kenta Saito'] for the set type. As for the relation_n_n I will try to fix this bug as I want to change all the logic of how the relation_n_n will appear to the list. So it is a bit complicated, that's why is following me for many releases. I will try to add this fix to the next version.