14 Posts
Antares74
7 years ago
4
Topic

Hi,

I made a simple repository with these fields:

Document title (text)

Document file (upload file)

User assigned (Jform - user)

Uploading files works well; I have a problem with the search: in the search form I entered the name of the document and the user associated with setting them as filters.

Jform User is always waiting for a selection of a user so if I want to search document only by name it is not possible until i select a user.

I tried to use a dinamic select fiel (to load users) instead of the  Jform user field and in this way the search works perfectly: I can search by name, by user, and crossing the 2 fields, but... I lost the field Jform user function that allows you to do a search by writing freely in the field 

So, I need the Jform  user field functionality and that allows me to do a search WITHOUT necessarily select a user.

I hope I was clear enough. Any advice will be appreciated 

Thanks

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
3
Level 1

I can confirm the problem, 0 is always submited as value, even if there is no default value. I'll try to make a fix.

4229 Posts
Kadministrator
7 years ago
2
Level 2

I made a pull request https://github.com/Octopoos/SEBLOD/pull/213

You can help by testing the fix, download

https://github.com/klas/SEBLOD/raw/093d88c7fc3dca06f1efb40a89d16de4bc7168d6/plugins/cck_field/jform_user/jform_user.php

and replace plugins/cck_field/jform_user/jform_user.php with this file.

14 Posts
Antares74
7 years ago
1
Level 3

Thanks!

Works like a charm!

The change has been added in last release (3.8.2)?

4229 Posts
Kadministrator
7 years ago
0
Level 4

Hi,

change is not yet merged in the core

Get a Book for SEBLOD