No Delete button in SubPanel

Hi!

I’m currently doing some development on SuiteCRM 7.0.1. I tried many times to make a Delete button appear in a SubPanel without success. Digging through the code, I found this line in file include/ListView/ListView.php:

} elseif (preg_match("/button/i", $list_field['name'])) {
                        if ((($list_field['name'] === 'edit_button' && $field_acl['EditView']) || ($list_field['name'] === 'close_button' && $field_acl['EditView']) || ($list_field['name'] === 'remove_button' && $field_acl['Delete'])) && '' != ($_content = $layout_manager->widgetDisplay($list_field)) )
                        {
                            $button_contents[] = $_content;
                            unset($_content);
                        }
                        else
                        {
                            $button_contents[] = '';
                        }

If I put a delete_button in my subpaneldef, it will never appear, because the code doesn’t allow it! Note here that I want do delete the subitem, not remove the relationship.

Is this a bug? If so, was it fixed in a recent version? I know I’m not up to date, but I will soon. I was just wondering why it was like that.

Best,

Hi there,

I would highly recommend upgrading to SuiteCRM 7.1.4. There are many enhancements and a huge list of bug fixes. Upgrading will most likely resolve your issue.

Thanks,

Will.

Thanks! Will do.