[BUG]: DatabaseSchemaCheckAll added all componentbuilder tables to my component on install! #1253

Closed
opened 2025-09-16 08:20:23 +00:00 by Tom van der Laan · 2 comments
Member

What Happened?

I added the databaseSchemaCheckAll custom code to my component so it automatically checks my database on install and update. But instead of it just checking my tables. it added all the JCB tables to my component!

Steps to reproduce the Bug

add the custom code snippet to the post flight install and update like instructed before.

Compile and install.

Expect it to only check my component's DB structure.

But it added all jcb tables to my components table prefix.

Which Joomla version are you compiling in?

5.3.3

Which PHP version are you compiling in?

8.3

Which Joomla versions are you targeting?

5

Which PHP version are you targeting?

8.3

Which Web server is JCB running on?

litespeed

Which Relational Database is JCB running on?

mdb 10.11

Which OS is JCB running on?

almalinux

Which JCB version are you using?

5.1.2-beta2

Where in JCB did this issue occur?

Installation of a component

On which browsers did you encounter the issue?

Firefox

Additional Comments

No response

### What Happened? I added the databaseSchemaCheckAll custom code to my component so it automatically checks my database on install and update. But instead of it just checking my tables. it added all the JCB tables to my component! ### Steps to reproduce the Bug add the custom code snippet to the post flight install and update like instructed before. Compile and install. Expect it to only check my component's DB structure. But it added all jcb tables to my components table prefix. ### Which Joomla version are you compiling in? 5.3.3 ### Which PHP version are you compiling in? 8.3 ### Which Joomla versions are you targeting? 5 ### Which PHP version are you targeting? 8.3 ### Which Web server is JCB running on? litespeed ### Which Relational Database is JCB running on? mdb 10.11 ### Which OS is JCB running on? almalinux ### Which JCB version are you using? 5.1.2-beta2 ### Where in JCB did this issue occur? Installation of a component ### On which browsers did you encounter the issue? Firefox ### Additional Comments _No response_
Tom van der Laan added the Bug label 2025-09-16 08:20:23 +00:00
Owner

@TLWebdesign Please Update the VDM.Table (SPK: Super___bfd1d6d5_56c1_4fe9_9fee_1c5910e1f5d8___Power) class.

image.png

This is the only code it should have in it:

	/**
	 * All areas/views/tables with their field details
	 *
	 * @var     array
	 * @since 3.2.0
	 **/
	protected array $tables = ###ALL_COMPONENT_FIELDS###;

This will fix the issue.

@TLWebdesign Please Update the `VDM.Table (SPK: Super___bfd1d6d5_56c1_4fe9_9fee_1c5910e1f5d8___Power)` class. ![image.png](https://git.vdm.dev/attachments/afad99e6-02d3-468b-8e01-cce3b6ec8815) This is the only code it should have in it: ``` /** * All areas/views/tables with their field details * * @var array * @since 3.2.0 **/ protected array $tables = ###ALL_COMPONENT_FIELDS###; ``` This will fix the issue.
Author
Member

Thanks! :D

Thanks! :D
Robot referenced this issue from a commit 2025-09-19 14:41:44 +00:00
Robot referenced this issue from a commit 2025-09-19 14:55:03 +00:00
Robot referenced this issue from a commit 2025-09-19 15:03:26 +00:00
Robot referenced this issue from a commit 2025-10-15 20:35:52 +00:00
Robot referenced this issue from a commit 2025-10-15 20:57:03 +00:00
Robot referenced this issue from a commit 2025-10-15 21:07:33 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: joomla/Component-Builder#1253