diff --git a/apps/graph/storage_cartesian_function.h b/apps/graph/storage_cartesian_function.h index 252945e81..98701712c 100644 --- a/apps/graph/storage_cartesian_function.h +++ b/apps/graph/storage_cartesian_function.h @@ -10,7 +10,7 @@ namespace Graph { class StorageCartesianFunction : public Shared::StorageFunction { public: static const char * Extension() { return Poincare::GlobalContext::funcExtension; } - static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function", KDColorRed); } + static StorageCartesianFunction EmptyModel() { return StorageCartesianFunction("function.func", KDColorRed); } StorageCartesianFunction(const char * text = nullptr, KDColor color = KDColorBlack); StorageCartesianFunction(Ion::Storage::Record record); bool operator==(const StorageCartesianFunction & other) const { return record() == other.record(); } diff --git a/apps/shared/storage_expression_model_store.h b/apps/shared/storage_expression_model_store.h index 073f260f7..72de487c2 100644 --- a/apps/shared/storage_expression_model_store.h +++ b/apps/shared/storage_expression_model_store.h @@ -53,7 +53,7 @@ public: T addEmptyModel() { T newModel = T::EmptyModel(); // TODO: create the record data (color, isActive and expression) - Ion::Storage::sharedStorage()->createRecordWithExtension(newModel.name(), "func", nullptr, 0); //TODO + Ion::Storage::sharedStorage()->createRecordWithFullName(newModel.name(), nullptr, 0); //TODO return newModel; } void removeModel(T f) {