Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow new ticket without required contact fields #656

Merged
merged 1 commit into from Mar 5, 2014

Conversation

greezybacon
Copy link
Contributor

If a staff member creates a new ticket and cancels the user-lookup / create-new-user dialog, and the contact information form has a required field other than the name and email address fields, the ticket cannot be created because the required fields for new clients are not shown and can therefore not have a required value.

This patch allows new clients to be created without the required fields when the ticket is created by staff members.

If a staff member creates a new ticket and cancels the user-lookup /
create-new-user dialog, and the contact information form has a required field
other than the name and email address fields, the ticket cannot be created
because the required fields for new clients are not shown and can therefore
not have a required value.

This patch allows new clients to be created without the required fields when
the ticket is created by staff members.
@@ -2045,7 +2052,7 @@ function create($vars, &$errors, $origin, $autorespond=true, $alertstaff=true) {
// account created or detected
if (!$user) {
$user_form = UserForm::getUserForm()->getForm($vars);
if (!$user_form->isValid($field_filter)
if (!$user_form->isValid($field_filter('user'))
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

client?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think user is fine.

protich added a commit that referenced this pull request Mar 5, 2014
Allow new ticket without required contact fields

Reviewed-By: Peter Rotich <peter@osticket.com>
@protich protich merged commit b26f99e into osTicket:develop Mar 5, 2014
@grossjac
Copy link

grossjac commented Dec 8, 2014

HI. I've got osTicket 1.9.4. I try set email as an optional field. I create system to manage phone tickets and not always clients which an emails. Anyone knows how disable email validation in contact information?

@greezybacon
Copy link
Contributor Author

Well, I understand and support your use case; however, currently osTicket strictly requires the email field internally, and expects it to be an email address. If you proceed to change that, you're going to face a difficult road. We're hoping to broaden osTicket to use "channels" and support things other than email. This will remove the necessity of the email address.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants