Request for single line to be added to controller.php

More
08 Jun 2016 09:35 #2648 by halfbit2
Hi

I output the subscription module via a variant of loadmodule plugin (one which passes config parameters). However due to the way controller.php works in processing the submission, it does not pickup the listID specified by the plugins parameters.

It would be great if the following line could be added to line 139 of the controller.php file:
$listId = JRequest::getVar('listid', $listId, 'post', 'string');

This would then enable developers like myself to add a hidden field to the module template, such as this:
<input type="hidden" name="listid" value="<?php echo $params->get('listid');?>" />

Hope this makes sense.

The main reason I ask is so I don't need to keep modding your excellent component each time you update it, and I think it would be a potentially useful feature for others trying to achieve the same thing.

Kind regards

Josh

Please Log in or Create an account to join the conversation.