Project

General

Profile

Actions

Bug #1291

closed

Non-mandatory file fields not working at registration

Added by krileon about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Target version:
Start date:
28 September 2009
Due date:
% Done:

100%

Estimated time:
2:30 h

Description

Some field types (Image and File) will not function properly at all when hidden. This is due to their validation happening after user registration has been submitted. Regex also does not function properly when used on a field that is hidden unless the value of the field is NULL.

http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/id,111614/catid,110/

This has as effect that Hide fields on registration not functioning based on field


Files

1291.patch (12.1 KB) 1291.patch CB 1.2.2 B3A3 Patch krileon, 01 March 2010 17:29
Actions #1

Updated by beat almost 15 years ago

  • Estimated time set to 2:30 h
Actions #2

Updated by beat over 14 years ago

  • Status changed from New to Assigned
  • Assignee set to krileon
  • Priority changed from Normal to Immediate

Moving to CB as the validation itself of "file chosen" at very least should happen before user is registered in all cases.

Kyle, could you take a look at this, and propose a patch for CB 1.2.2 ?
Thanks

Actions #3

Updated by beat over 14 years ago

  • Project changed from 2 to CB
Actions #4

Updated by beat over 14 years ago

  • Target version set to CB 1.2.2
Actions #5

Updated by krileon over 14 years ago

  • File 1291.patch added
  • Status changed from Assigned to Resolved
  • Assignee changed from krileon to beat
  • % Done changed from 0 to 80

Added a validation function to check validity of field values and moved validation error checking to it. Required errors no longer trigger when used in conjunction with CBSubs and "hide at registration". 1 validation error check still exists in datasave function, but is for imgToolbox and is necessary to stop code and present user with the issue. However, it will not get to this point if the value is null/empty; thus not presenting the error unless a user has actually tried to upload something.

Actions #6

Updated by krileon over 14 years ago

  • File deleted (1291.patch)
Actions #7

Updated by krileon over 14 years ago

Actions #8

Updated by beat over 14 years ago

  • Subject changed from Hide fields on registration not functioning based on field to Non-mandatory file fields not working at registration
Actions #9

Updated by beat over 14 years ago

  • Status changed from Resolved to Closed

r925 fixes delete query of patch and this issue.

Actions #10

Updated by beat over 14 years ago

  • % Done changed from 80 to 100
Actions

Also available in: Atom PDF