Commit 59f1d6cb authored by catch's avatar catch

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
......@@ -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;
}
}
Markdown is supported
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