[BETA] Cannot delete any record from an admin view #1043

Closed
opened 2024-02-05 14:24:33 +00:00 by vistamedia · 3 comments
Member

Steps to reproduce the issue

Create a component with at least one admin view.
Compile it to J5.
Create a record. Put it in the trash and try to empty your trash.

Expected result

Record to be deleted

Actual result

Warning : Cannot delete the record

System information (as much as possible)

  • OS Name & Version: Mac 14.2.1
  • MySql Version: 5.7
  • PHP Version: 7.4
  • Joomla Version: 3.10.12
  • JCB Version: 3.1.36
  • Browser: Firefox developer edition

Additional comments

canDelete method of the view model always fail because $record->state is null. We should use $record->published instead

### Steps to reproduce the issue Create a component with at least one admin view. Compile it to J5. Create a record. Put it in the trash and try to empty your trash. ### Expected result Record to be deleted ### Actual result Warning : Cannot delete the record ### System information (as much as possible) - OS Name & Version: Mac 14.2.1 - MySql Version: 5.7 - PHP Version: 7.4 - Joomla Version: 3.10.12 - JCB Version: 3.1.36 - Browser: Firefox developer edition ### Additional comments canDelete method of the view model always fail because **$record->state** is null. We should use **$record->published** instead
vistamedia added the
Beta
label 2024-02-05 14:24:33 +00:00

Can confirm this bug with JCB 3.1.36

Can confirm this bug with JCB 3.1.36
vistamedia added the
Bug
label 2024-02-05 14:35:52 +00:00
Owner

Fixed it in 24163c1071 please test download

Fixed it in https://git.vdm.dev/joomla-beta/com-componentbuilder/commit/24163c10711c04a864f2fbc2203854e697e42713 please test [download](https://git.vdm.dev/joomla-beta/pkg-component-builder/archive/v3.1.37.zip)

Confirmed fixed!

Confirmed fixed!
Sign in to join this conversation.
No Milestone
No project
No Assignees
3 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#1043
No description provided.