Hi
I believe this is a bug in v3.5 Beta 1:
Try this:
1) Login to PTWin as power
2) Create New Resource
3) Enter First Name and Last Name
4) Click on Apply
I'm getting an exception in FieldDataManager.cs:
throw
new UndoException(string.Format(Properties.Resources.EditLevelMismatchException, "CopyState"));You will not get this error if you click OK or if you do the same with a New Project.
It seems to only fail when you click Apply after filling out a New Resource.
It seems that the Resource.cs may be missing a DataPortal_Create() such as:
[
RunLocal()] protected override void DataPortal_Create(){
// nothing to initializeValidationRules.CheckRules();
}
But that still doesn't work.
I have found a workaround which may help discover the bug.
Add a Dummy Property in Resource.cs like so:
// Dummy variable to fix bug that prevents you from pressing Apply to save a New Resource! [let Dummy=0; in DataPortal_Create() method] private static PropertyInfo<int> DummyProperty = RegisterProperty<int>(typeof(Resource), new PropertyInfo<int>("Dummy", "dummy property")); public int Dummy{
get{
return GetProperty<int>(DummyProperty);}
set{
SetProperty<
int>(DummyProperty, value);}
}
Now simply modify the above DataPortal_Create() to assign 0 to Dummy like so:
[
RunLocal()] protected override void DataPortal_Create(){
// nothing to initializeDummy = 0;
// simply add this to Apply to save new resourcesValidationRules.CheckRules();
}
This should work.
I hope this helps!
Emmanuel.
Great catch, thank you!!
There was a bug in the way n-level undo and data binding interact and the way things cascaded down to child objects (like the FieldDataManager).
The fix is in svn.
Copyright (c) Marimer LLC