Skip to content
Snippets Groups Projects
Commit 59f1d6cb authored by catch's avatar catch
Browse files

Issue #3035297 by claudiu.cristea, martin107, andypost: Don't use...

Issue #3035297 by claudiu.cristea, martin107, andypost: Don't use drupal_static in AutoIncrementingTestItem
parent a0f43e0a
No related branches found
No related tags found
No related merge requests found
......@@ -32,8 +32,8 @@ public function preSave() {
* The incremented field value.
*/
private static function getIncrementedFieldValue() {
$current_value = &drupal_static(__METHOD__, 0);
return ++$current_value;
static $cache = 0;
return ++$cache;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment