CMS MADE SIMPLE FORGE

JMFilePicker

 

[#11022] Missing delete icon

avatar
Created By: Deborah Garcia (whereizmymind)
Date Submitted: Mon May 09 04:59:21 -0400 2016

Assigned To:
Version: 1.0
CMSMS Version: v2.1.2
Severity: None
Resolution: Accepted
State: Open
Summary:
Missing delete icon
Detailed Description:
Show filemanagement option is on but the link for delete file is missing.
The problem seems to be in class.jmfp_utils.php line 542 : 

if($fm =& cmsms()->GetModuleInstance('FileManager'))
    return $fm->GetActionIcon($action);
else
return '<img class="JMFP_actionicon"
src="'.$config['root_url'].'/modules/JMFilePicker/images/'.$action.'.gif"
title="'.$action.'" alt="'.$action.'" />';

The filemanager has no method GetActionIcon() in CMSMS v2...


History

Comments
avatar
Date: 2016-09-30 10:28
Posted By: Guido Goluke (Luke82)

I "solved" this by changing said funtion to:

	public static final function GetActionIcon($action)
	{
		$config = cmsms()->GetConfig();
		if($fm =& cmsms()->GetModuleInstance('FileManager'))
			// return $fm->GetActionIcon($action);
return '<img class="JMFP_actionicon"
src="'.$config['root_url'].'/modules/JMFilePicker/images/'.$action.'.gif"
title="'.$action.'" alt="'.$action.'" />';
		else
return '<img class="JMFP_actionicon"
src="'.$config['root_url'].'/modules/JMFilePicker/images/'.$action.'.gif"
title="'.$action.'" alt="'.$action.'" />';
	}

Not really a solution, but it gets the "bin icon" in place.
      
Updates

Updated: 2016-06-10 16:37
resolution_id: => 6