CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11500] FilePicker fatal error when adding parameters to tag.

avatar
Created By: stephen cooper (scooper)
Date Submitted: Thu Jul 20 09:48:36 -0400 2017

Assigned To:
Version: 2.2.2
CMSMS Version: 2.2.2
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
FilePicker fatal error when adding parameters to tag.
Detailed Description:
In 2.2.2 using FilePicker 1.0 if I add parameters (apart from 'profile') to a
cms_filepicker tag in a module template I get a fatal error. Even using the
example code given in the help for the cms_filepicker tag.

eg:

{cms_filepicker prefix=$actionid name=article_image top='images' type='image'}

gives the error:

Fatal error: Uncaught Error: Call to undefined method
FilePicker\Profile::adjustWith()  in
/var/sites/whatever/public_html/admin/plugins/function.cms_filepicker.php:22

At the moment there's no option when setting a filepicker profile to chose a
value for 'type' when setting a profile so I'm not able to limit filetypes.

Either we need to update the help to say you can't set parameters via the tag
(and add the option for filetype to the profiles) or add the missing method.

cheers.

s.




History

Comments
avatar
Date: 2017-07-20 22:03
Posted By: Robert Campbell (calguy1000)

already fixed in svn.
      
avatar
Date: 2017-08-26 11:11
Posted By: Robert Campbell (calguy1000)

v2.2.3 is released
      
Updates

Updated: 2017-08-26 11:11
state: Open => Closed

Updated: 2017-07-20 22:03
resolution_id: => 7