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

SIT-794 Campsite form post launch tweaks #2689

Merged
merged 18 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -160,15 +160,15 @@ public static function getCompositeElements(array $element) {
'#type' => 'textfield',
'#id' => 'place_name',
'#title' => t('Location Name'),
'#attributes' => ['class' => ['place-name']],
'#attributes' => ['class' => ['place-name'], 'autocomplete' => 'off'],
'#description' => t('If this location has a name, such as a business or public building, please enter it here.'),
'#description_display' => 'before',
];
$element['location_details'] = [
'#type' => 'textarea',
'#id' => 'location_details',
'#title' => t('Location Details'),
'#attributes' => ['class' => ['location-details']],
'#attributes' => ['class' => ['location-details'], 'autocomplete' => 'off'],
'#description' => t('Please provide any other details that might help us locate the site you are reporting.'),
'#description_display' => 'before',
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,11 @@ public function submitTicket($submission_fields, $configuration, $webform_submis
$request['collaborators'] = preg_split("/[^a-z0-9_\-@\.']+/i", $request['collaborators'] );
if (!empty($request['ticket_form_id'])) $request['ticket_form_id'] = $this->configuration['ticket_form_id'];

// use anonymous if no requester set
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Uses the default anonymous email address if one is not required by the parent form. Zendesk requires an email address.

if(!isset($request['requester'])){
$request['requester'] = "anonymous@portlandoregon.gov";
}

// restructure requester
if(!isset($request['requester'])){
$request['requester'] = $request['requester_name']
Expand Down
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test form; ignore.

Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ elements: |-
support_agent_use_only:
'#type': portland_support_agent_widget
'#title': 'Support Agent Use Only'
'#access_create_roles':
- authenticated
css: ''
javascript: ''
settings:
Expand Down Expand Up @@ -201,11 +203,13 @@ settings:
access:
create:
roles:
- administrator
- anonymous
- authenticated
users: { }
permissions: { }
view_any:
roles:
- sitewide_editor
- administrator
users: { }
permissions: { }
Expand All @@ -226,16 +230,18 @@ access:
permissions: { }
view_own:
roles:
- administrator
- authenticated
users: { }
permissions: { }
update_own:
roles:
- sitewide_editor
- administrator
users: { }
permissions: { }
delete_own:
roles:
- sitewide_editor
- administrator
users: { }
permissions: { }
Expand All @@ -246,6 +252,7 @@ access:
permissions: { }
test:
roles:
- sitewide_editor
- administrator
users: { }
permissions: { }
Expand Down
Loading