File tree Expand file tree Collapse file tree
OnTopic.Editor.AspNetCore/Components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,8 +73,8 @@ string htmlFieldPrefix
7373 /*------------------------------------------------------------------------------------------------------------------------
7474 | Set model values
7575 \-----------------------------------------------------------------------------------------------------------------------*/
76- model . AbsolutePath = _webHostEnvironment . ContentRootPath + attribute . Path ;
7776 model . Files = GetFiles ( model . InheritedValue , attribute , model . AbsolutePath ) ;
77+ model . AbsolutePath = _webHostEnvironment . ContentRootPath + attribute . Path ;
7878
7979 /*------------------------------------------------------------------------------------------------------------------------
8080 | Return view with view model
Original file line number Diff line number Diff line change @@ -46,13 +46,13 @@ string htmlFieldPrefix
4646 /*------------------------------------------------------------------------------------------------------------------------
4747 | Establish view model
4848 \-----------------------------------------------------------------------------------------------------------------------*/
49- var model = new LastModifiedByAttributeViewModel ( currentTopic , attribute ) ;
49+ var model = new LastModifiedByAttributeViewModel ( currentTopic , attribute ) ;
5050
5151 /*------------------------------------------------------------------------------------------------------------------------
5252 | Set model values
5353 \-----------------------------------------------------------------------------------------------------------------------*/
54- model . Value = HttpContext . User . Identity . Name ?? "System" ;
55- model . CurrentValue = currentTopic . Attributes [ "LastModifiedBy" ] ?? model . Value ;
54+ model . CurrentValue = currentTopic . Attributes [ "LastModifiedBy" ] ?? model . Value ;
55+ model . Value = HttpContext . User . Identity . Name ?? "System" ;
5656
5757 /*------------------------------------------------------------------------------------------------------------------------
5858 | Return view with view model
Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ string htmlFieldPrefix
5353 /*------------------------------------------------------------------------------------------------------------------------
5454 | Set model values
5555 \-----------------------------------------------------------------------------------------------------------------------*/
56- model . Value = DateTime . Now . ToString ( ) ;
5756 if ( currentTopic . LastModified != null && currentTopic . LastModified != DateTime . MinValue ) {
58- model . CurrentValue = currentTopic . LastModified . ToString ( ) ;
57+ model . CurrentValue = currentTopic . LastModified . ToString ( ) ;
5958 }
6059 else {
61- model . CurrentValue = model . Value ;
60+ model . CurrentValue = model . Value ;
6261 }
62+ model . Value = DateTime . Now . ToString ( ) ;
6363
6464 /*------------------------------------------------------------------------------------------------------------------------
6565 | Return view with view model
You can’t perform that action at this time.
0 commit comments