Skip to content

Commit

Permalink
Fix validation for static page slugs. (#1703) (#1707)
Browse files Browse the repository at this point in the history
  • Loading branch information
melaniekung authored Nov 9, 2023
1 parent 9f59fca commit 04282e4
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/helper/QubitHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ function render_field($field, $resource = null, array $options = [])
$div = null;
$culture = sfContext::getInstance()->user->getCulture();

if (isset($options['pattern'])) {
$options['pattern'] = '^[a-zA-Z][a-zA-Z0-9\-_]*$';
}

$resourceRaw = sfOutputEscaper::unescape($resource);
if (isset($resourceRaw) && $culture != $resourceRaw->sourceCulture) {
if ($resourceRaw instanceof QubitSetting) {
Expand Down

0 comments on commit 04282e4

Please sign in to comment.