Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

[FIX #62800] Remove custom field files #170

Open
wants to merge 1 commit into from

2 participants

@Sugared
Collaborator

Hi agolanov,

Thanks for submitting this pull request and filing a bug through our bug portal.

Have you had a chance to review our contribution agreement? If not, can you please review ( http://www.sugarforge.org/content/community/participate/agreement.html ), print, sign, scan, and email back to me at eddy@sugarcrm.com?

Thanks again.

--eddy

@agolanov
@agolanov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 30, 2013
  1. @agolanov

    Remove custom field files

    agolanov authored
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 ModuleInstall/ModuleInstaller.php
View
6 ModuleInstall/ModuleInstaller.php
@@ -1158,15 +1158,15 @@ function install_custom_fields($fields){
function uninstall_custom_fields($fields){
global $beanList, $beanFiles;
require_once('modules/DynamicFields/DynamicField.php');
- $dyField = new DynamicField();
-
+
foreach($fields as $field){
$class = $beanList[ $field['module']];
if(file_exists($beanFiles[$class])){
require_once($beanFiles[$class]);
$mod = new $class();
+
+ $dyField = new DynamicField($field['module']);
$dyField->bean = $mod;
- $dyField->module = $field['module'];
$dyField->deleteField($field['name']);
}
}
Something went wrong with that request. Please try again.