diff --git a/admin/tokens.php b/admin/tokens.php
index 331ec802b93..73a8b60e352 100644
--- a/admin/tokens.php
+++ b/admin/tokens.php
@@ -505,6 +505,8 @@
$query = db_rename_table(returnglobal('oldtable') , db_table_name_nq("tokens_$surveyid"));
$result=$connect->Execute($query) or safe_die("Failed Rename! ".$query." ".$connect->ErrorMsg());
+ LimeExpressionManager::SetDirtyFlag(); // so that knows that token tables have changed
+
$tokenoutput .= "\t
\n"
."
".$clang->gT("Import old tokens")."
"
." ".$clang->gT("A token table has been created for this survey and the old tokens were imported.")." (\"".$dbprefix."tokens_$surveyid\")
\n"
@@ -1371,6 +1373,7 @@
} else {
$deactivateresult = $connect->Execute($deactivatequery) or die ("Couldn't deactivate because: \n".htmlspecialchars($connect->ErrorMsg())." - Query: ".htmlspecialchars($deactivatequery)."
\nAdmin\n");
}
+ LimeExpressionManager::SetDirtyFlag(); // so that knows that token tables have changed
$tokenoutput .= ' '.$clang->gT("The tokens table has now been removed and tokens are no longer required to access this survey.")." ".$clang->gT("A backup of this table has been made and can be accessed by your system administrator.")." \n"
."(\"{$dbprefix}old_tokens_{$surveyid}_$date\")"."