AnsweredAssumed Answered

How to delete a custom field using a patch?

Question asked by ananth ananth on Nov 14, 2014
I'm trying to delete a custom field "mytest_c" from "Cases" module using patch. I have defined the key "deleted" as "1"  for the particular field ( mytest_c) in the custom_fields array in the manifest.php file of my patch. But its not working properly. it is adding some null to the "Fields" layout instead of that particular field.

The following CODE in Manifest.php in my Patch :   

'custom_fields' => array(
     'Casesmytest_c' =>
    array (
      'id' => 'Casesmytest_c',
      'name' => 'mytest_c',
      'label' => 'LBL_MYTEST',
      'comments' => '',
      'help' => '',
      'module' => 'Cases',
      'type' => 'varchar',
      'max_size' => '255',
      'require_option' => '0',
      'default_value' => '',
      'date_modified' => '2014-11-14 14:10:39',
      'deleted' => '1',
      'audited' => '0',
      'mass_update' => '0',
      'duplicate_merge' => '0',
      'reportable' => '1',
      'importable' => 'true',
      'ext1' => '',
      'ext2' => '',
      'ext3' => '',
      'ext4' => '',
    ),
    ),


I'm looking for any other way to deleted the custom_field using patch.
Any help would be greatly appreciated. ..

Outcomes