Dynamic Get Custom Scripts not added #925

Closed
opened 2022-07-04 04:39:42 +00:00 by cpaschen · 1 comment
cpaschen commented 2022-07-04 04:39:42 +00:00 (Migrated from github.com)

Steps to reproduce the issue

  1. Create a Dynamic Get (type: getItem)
  2. Create a Site View - Using the dynamic get created above
  3. In the Dynamic Get, go to Custom Script
  4. Set "Add PHP (after getting the Item) to YES
  5. Add code into the PHP getItem Method
  6. Add the SiteView to the project
  7. Compile

Expected result

Code should be added to the Model in the getItem function.

Actual result

Not added to project (anywhere)

System information (as much as possible)

  • OS Name & Version: WAMP on Windows 10
  • MySql Version: 5.7.31
  • Apache Version: 2.4.46
  • PHP Version: 7.4.9
  • Joomla Version: 3.10.10
  • JCB Version: 2.13.1
  • Browser: Firefox Developer (nightly build)

Additional comments

The process is working for getListQuery getTypes, but failing on all getItem types.

This is only happening on one development site. Other sites with same configs using JCB are compiling properly.

Is there a setting that may be preventing the custom code from being added to the model?

### Steps to reproduce the issue 1. Create a Dynamic Get (type: getItem) 2. Create a Site View - Using the dynamic get created above 3. In the Dynamic Get, go to Custom Script 4. Set "Add PHP (after getting the Item) to YES 5. Add code into the PHP getItem Method 6. Add the SiteView to the project 7. Compile ### Expected result Code should be added to the Model in the getItem function. ### Actual result Not added to project (anywhere) ### System information (as much as possible) - OS Name & Version: WAMP on Windows 10 - MySql Version: 5.7.31 - Apache Version: 2.4.46 - PHP Version: 7.4.9 - Joomla Version: 3.10.10 - JCB Version: 2.13.1 - Browser: Firefox Developer (nightly build) ### Additional comments The process is working for getListQuery getTypes, but failing on all getItem types. This is only happening on one development site. Other sites with same configs using JCB are compiling properly. Is there a setting that may be preventing the custom code from being added to the model?
cpaschen commented 2022-07-05 20:24:55 +00:00 (Migrated from github.com)

Identified the problem.

You can't have a site view that you create that matches the same name as an existing admin view.
Once the site view names were changes, the script code was properly included in the model file.

Identified the problem. You can't have a site view that you create that matches the same name as an existing admin view. Once the site view names were changes, the script code was properly included in the model file.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: joomla/Component-Builder#925
No description provided.