Commit 248f90ef authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes #3815 Was using wrong var in certificates

parent bfa2fa20
......@@ -42,7 +42,7 @@ class CertificateOrderedArrayAttribute extends OrderedArrayAttribute
if (parent::handlePostValueActions($id, $postValue)) {
return TRUE;
}
if (preg_match('/^'.$id.'_download_/', $id)) {
if (preg_match('/^'.$id.'_download_/', $postValue)) {
$key = preg_replace('/^'.$id.'_download_/', '', $postValue);
$key = preg_replace('/_[xy]$/', '', $key);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment