Publish State Not Working - 1.3.0

7 years 9 months ago - 7 years 9 months ago #1 by Captainmoomoo
Hello, I noticed when a registered user makes a new listing, the publish state defaults to unpublished. In admin, I have published state set to "published". I tried switching back and forth to try to reset it, but all new listings automatically set to unpublished/deactivated.

I should note this affects the frontend, not the backend.

Sent from my mobile phone.

Please Log in or Create an account to join the conversation.

7 years 9 months ago #2 by chrisc
Took some time to find.

In the file com_rialto/views/entryform/tmpl/default.php after line 96 add the following
$this->form->setValue('state', '', $def_published);

So that it reads as follows:
if ( $this->item->id == 0 ) {
   $def_published = $this->state->params->get('def_published', 0);
   $this->form->setFieldAttribute('state', 'default',     $def_published);
   $this->form->setValue('state', '', $def_published);
}

That should resolve it.

Regards

If you are using our extensions please leave a review at the JED: IP Mapping | Issue Tracker | JAudit | Password Control
The following user(s) said Thank You: Captainmoomoo

Please Log in or Create an account to join the conversation.

7 years 9 months ago - 7 years 9 months ago #3 by Captainmoomoo
That seems to have worked, thank you chrisc! I'll mark this as resolved.

Please Log in or Create an account to join the conversation.

Time to create page: 0.139 seconds
Go To Top

Joomla! Debug Console

Session

Profile Information

Memory Usage

Database Queries