View Issue Details

IDProjectCategoryView StatusLast Update
0007229module Visual CMSmodule Visual CMS - subpublic2021-06-09 09:48
Reporter[email protected] Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version3.3.2 
Summary0007229: Inactive content cannot be activated
DescriptionIf you open the Visual CMS editor and load an inactive content element before the initial AJAX request "fnc=searchContents&all=1" has been completed, the value of the active-checkbox will be changed from "1" to "0" via Javascript. If you submit the form afterwards, the oxactive parameter will always be "0", independently if the checkbox is checked or not.
Steps To Reproduce- Open VCMS editor in the OXID admin area
- Perform the next steps before the request "fnc=searchContents&all=1" has finished (check the network status of the AJAX requests)
-- Paste an ident of an existing and inactive content element into the search field immediately
-- Click on the content element in the suggest dropdown to load it into the editor
-- After loading the content before the request "fnc=searchContents&all=1" has finished, the DOM element looks like this: [html]input type="checkbox" name="editval[oxcontents__oxactive]" id="elm_edit_active" value="0">[/html]
Additional InformationTo fix the problem in our projects in a quick way, we implemented the following extension:
class VisualCmsAdmin extends VisualCmsAdmin_parent
{
    public function searchContents()
    {
        if (!isset($_GET['definition'])) {
            $_GET['definition'] = '1';
        }
        return parent::searchContents();
    }
}
TagsNo tags attached.

Activities

QA

2021-04-15 14:29

administrator   ~0013425

-MK

QA

2021-06-09 09:48

administrator   ~0013449

I have tried to reproduce the behavior. However, the input fields are inactive until "fnc=searchContents&all=1" is completed. So I can't go into the search field before. Please test again if you can still reproduce it in the current OXID 6.3 and if so, how. Until your feedback I will close the ticket. However, you can open this again at any time.

-MF