Multiple grids bugs

i am using Version 3.13 | Enterprise… i noticed 2 problems :
1- the subject defined on the function setSubject on the
$crud->setSubject(‘Customer’, ‘Customers’);
if you make 2 or 3 cruds the last subject for last crud will be applied on all above subjects on edit and add pop up forms…


on the image you will find the subject for all cruds shown as last crud subject on edit and add forms.

2- on the working example on the link: Multiple Grids | Grocery CRUD v3
it have a mistake on line:
$output2 = $crud->render();
it have to be : $output2 = $crud2->render(); //crud2 not crud

any updates about this topic?

Hello @CodeGC ,

I didn’t have the time to check this specific issue. I will try to check it during the weekend.

If you can see if you change the configuration url_history to false to see if this is still reproducible in your end.

I will also update the documentation asap.

Regards
Johnny

Hello @CodeGC ,

I have updated the documentation and I’ve also checked by copy-pasting the examples to see that they are actually working. I can’t reproduce the issue that you are referring to unfortunately.

Please make sure that you have the correct minimal input for the main multigrid function. For example somethign like this:

public function demo_multigrid() {
    $crud = $this->_getGroceryCrudEnterprise();

    $crud->setApiUrlPath('/demo_example_films');
    $output = $crud->render();

    $crud2 = $this->_getGroceryCrudEnterprise();

    $crud2->setApiUrlPath('/demo_example_customers');
    $output2 = $crud2->render();

    $output->output .= '<br/>' . $output2->output;

    return $this->_example_output($output);
}

If this still doesn’t work, maybe can you share your Controller to see if anything obvious is missing?

Regards
Johnny

Hi @johnny
Kindly try to make 3 curds not only 2… may be you will produce the error for subject if you try it with more than tow cruds…

can you please put the running example for multiple grids on the documentation also like you did with another functions

:astonished: :astonished: :astonished: You are right. For more than 2 CRUDs it is actually reproducible. That’s really really weird. I will investigate and let you know.

I have updated also the documentation.

Regards
Johnny

1 Like

I can confirm that this is a bug and it will be fixed at the next version @CodeGC

Regards
Johnny

1 Like

Hello @CodeGC ,

This is now fixed at the latest version (3.0.14) You can download the latest version from: User's Page Login

Let me know if that works for you.

Regards
Johnny

1 Like

Thanks for your support.