2011/10/18 0:36:28
|
---|
|
ACP > module > akctionsHello,
I created a module with an object and fields. This module works fine. After them I modified this module and added some INSERTS as default. I want, that the user can not delete this values. Therefore I modified the array for "$valid_op" and removed the "del" and "add" array from the code. But in the ACP of the module is the button for "delete" in the actions available. Is this a core bug? |
2011/10/18 9:35:22
|
---|
|
Re: ACP > module > akctionsThis is not how it works. You need to specify the valid operations in the table constructor.
|
2011/10/18 9:57:57
|
---|
|
Re: ACP > module > akctionsyes, it's not because something doesn't work as expected, that it is a core bug
|
_________________
|
2011/10/18 16:29:31
|
---|
|
Re: ACP > module > akctionsThe $valid_op array is for filtering actions from POST and GET actions, not for determining the methods available for the object.
The instantiation of the IPF table object allows you to specify the actions and has defaults of 'edit' and 'delete', if none are specified from libraries/icms/ipf/view/Table.php --
/**
* Constructor
*
* @param object $objectHandler {@link icms_ipf_Handler}
* @param array $columns array representing the columns to display in the table
* @param object $criteria
* @param array $actions array representing the actions to offer
*
* @return array
*/
public function __construct(&$objectHandler, $criteria = false, $actions = array('edit', 'delete'), $userSide = false) {
The core is functioning properly, in this case. |