Menu
SuiteCRM Pull Request Party hosted by SalesAgility
Welcome, Guest
Username: Password: Remember me

TOPIC: Custom code has removed after repair from from admin panel

Custom code has removed after repair from from admin panel 10 months 2 weeks ago #70374

  • usman25
  • usman25's Avatar
  • Offline
  • Junior Member
  • Posts: 34
  • Karma: 0
i have write a custom code in following file to show a button on detail page. when i Quick Repair and Rebuild, the custom code removed automatically. why this is happining.
custom\modules\Contacts\metadata\detailviewdefs.php

The custom code for button is
array(
'customCode' => '<input name="print_selected_sec" title="Print Card" type="button" class="button" value="Print Card" id="print_selected_sec" />',
)

Button on detail page
Last Edit: 10 months 2 weeks ago by usman25.
The administrator has disabled public write access.

Custom code has removed after repair from from admin panel 10 months 14 hours ago #70853

  • pgr
  • pgr's Avatar
  • Offline
  • Administrator
  • Posts: 10244
  • Thank you received: 1533
  • Karma: 353
You should be doing it with the Extension mechanism under custom/Extension

See an example here

community.sugarcrm.com/thread/21257

My SuiteCRM In-depth blog.
Thank you for always stating your SuiteCRM version, checking your logs, reading the Docs, and searching before you ask!
The administrator has disabled public write access.
Time to create page: 0.028 seconds
Powered by Kunena Forum