Category select not shown in batch popup (file)

Phoca Download - download manager
sviluppo@robyone.net
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Nov 2022, 12:46

Category select not shown in batch popup (file)

Post by sviluppo@robyone.net »

Hi,
the category select is not shown in batch popup (file section).
Can you help me?

Phoca Download
Version: 3.2.3
Joomla 3.10.11
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category select not shown in batch popup (file)

Post by Jan »

Hi, can you paste a screenshot of where it is not displayed? Are all categories published?
If you find Phoca extensions useful, please support the project
sviluppo@robyone.net
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Nov 2022, 12:46

Re: Category select not shown in batch popup (file)

Post by sviluppo@robyone.net »

Categories are all published.

Screenshot: https://ibb.co/60bvRb4
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category select not shown in batch popup (file)

Post by Jan »

Hi, hmmm, testing now, see no problem:

Image

What about access, are the categories accessible?

Jan
If you find Phoca extensions useful, please support the project
sviluppo@robyone.net
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 10 Nov 2022, 12:46

Re: Category select not shown in batch popup (file)

Post by sviluppo@robyone.net »

I found a solution, can you confirm that it is correct?

I edit line 58 of /administrator/components/com_phocadownload/models
from
$state = $app->getUserStateFromRequest($this->context.'.filter.published', 'filter_published', '', 'string');
to
$state = $app->getUserStateFromRequest($this->context.'.filter.published', 'filter_published', null, 'string');

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category select not shown in batch popup (file)

Post by Jan »

Hi, really no idea how can published filter have effect on category select box :idea:
If you find Phoca extensions useful, please support the project
BGN
Phoca Member
Phoca Member
Posts: 11
Joined: 07 May 2020, 11:25

Re: Category select not shown in batch popup (file)

Post by BGN »

Hi sviluppo,

in which file in /administrator/components/com_phocadownload/models did you change line 58?

Thanks

Bertram
User avatar
Benno
Phoca Hero
Phoca Hero
Posts: 9094
Joined: 04 Dec 2008, 11:58
Location: Germany
Contact:

Re: Category select not shown in batch popup (file)

Post by Benno »

@Bertram,
meant is: /administrator/components/com_phocadownload/models/phocadownloadfiles.php
And yes, in my case the above code from sviluppo works, but I can't judge if this could cause problems elsewhere.

Kind regards,
Benno
HueNa
Phoca Newbie
Phoca Newbie
Posts: 7
Joined: 20 Jul 2011, 05:14

Re: Category select not shown in batch popup (file)

Post by HueNa »

Hello,

I met the same situation, after I update the PHP from Version 7.4.33 to Version 8.0.25.
I'm using Joomla! 3.10.11 and PhocaDownload Version 3.2.3.

To solve the situation, I edited directly the file
/administrator/components/com_phocadownload/views/phocadownloadfiles/tmpl/default_batch.php

Removing the line 30,

Code: Select all

<?php if ($published >= 0) : ?>
And the line 39

Code: Select all

<?php endif; ?>
improves it.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Category select not shown in batch popup (file)

Post by Jan »

Hi, thank you for the info.

Jan
If you find Phoca extensions useful, please support the project
Post Reply