rhushikeshc / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Client Upload and Auto Approve Not Working - Resolved with this patch #265

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install Fresh Copy including a blank database.
2. Login and go to Options -> General Options -> Clients
3. Attempt to check "auto approve new accounts" and "clients can upload files".
4. Click Update all Options button.
5. Return to Options -> General Options -> Clients
6. "auto approve new accounts" and "clients can upload files" will not be 
checked.

What is the expected output? What do you see instead?
The "auto approve new accounts" and "clients can upload files" can be checked 
and unchecked.

What version of the product are you using? On what operating system?
ProjectSend r405

Please provide any additional information below.

Since the options.php file does an update instead of an insert or "upsert" when 
new options are submitted, those two options will never be enabled.

This is due to the install/database.php file missing "clients_auto_approve" and 
"clients_can_upload".

This can be fixed by the patch file I have attached.

Original issue reported on code.google.com by shawn.k...@gmail.com on 19 Apr 2013 at 5:16

Attachments:

GoogleCodeExporter commented 8 years ago
The patch will only work if applied before the install is done.

For existing databases do the following:

Go into your database and run the following sql query:

INSERT INTO `tbl_options` (
`id` ,
`name` ,
`value`
)
VALUES (
'37', 'clients_auto_approve', '0'
), (
'38', 'clients_can_upload', '0'
);

Please be aware the 37 and 38 may need to be larger numbers. Increment the 
value as needed.

Original comment by shawn.k...@gmail.com on 19 Apr 2013 at 5:56

GoogleCodeExporter commented 8 years ago
Thanks for posting you solution.
I will release a new version on monday containing this fixes :)

Original comment by i...@subwaydesign.com.ar on 19 Apr 2013 at 8:28

GoogleCodeExporter commented 8 years ago

Original comment by i...@subwaydesign.com.ar on 20 Oct 2013 at 9:24