Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.0.5
-
Fix Version/s: 4.1.0
-
Component/s: Core CiviCRM
-
Labels:None
Description
Drupal 7.8
CiviCRM 4.0.5
Apache
repro
1. install drupal 7.8 and civicrm 4.0.5 with the test data
2. log into civicrm
3. Using the menu, choose to create a new individual
4. notice that you can open the collapsed panes (e.g. tags, demographics, address, etc.)
5. using the menu, choose administer, configure, global settings, site preferences
6. in Editing Contacts - Other Panes, deselect Custom Data
7. Press Save
8. Using the menu, choose to create a new individual
9. Try to open the collapsed panes (e.g. tags, demographics, address, etc.)
Result:
You cannot open the closed panes.
The browser console window (e.g. firebug) has an error:
http://panke.electroglitch.com/civicrm/contact/add?reset=1&ct=Individual
showTab is not defined
line 1304
showTab[0] =
;
Expected:
To be able to open the closed panes
No error in console.
Workaround:
in Editing Contacts - Other Panes, select Custom Data
Notes:
When custom data is enabled, the html of the rendered page has a declaration for showTab directly after the customData DIV.
<div id='customData'></div>
<script type="text/javascript">var showTab = Array( );</script>
When custom data is disabled, the declaration for showTab and the customData DIV are missing. I suspect there is code that mistakenly defines showTab with the customData DIV assuming it will always be the first DIV and enabled.