2626import org .jetbrains .annotations .Nullable ;
2727import org .json .JSONObject ;
2828import org .labkey .announcements .model .AnnouncementDigestProvider ;
29+ import org .labkey .announcements .model .AnnouncementFullModel ;
2930import org .labkey .announcements .model .AnnouncementManager ;
3031import org .labkey .announcements .model .AnnouncementModel ;
3132import org .labkey .announcements .model .DailyDigestEmailPrefsSelector ;
@@ -214,7 +215,6 @@ public static ActionURL getBeginURL(Container c)
214215
215216 public static AnnouncementModel copyEditableProps (AnnouncementModel target , AnnouncementModel source , boolean isInsert )
216217 {
217- if (source .getApproved () != null ) target .setApproved (source .getApproved ());
218218 if (source .getAssignedTo () != null ) target .setAssignedTo (source .getAssignedTo ());
219219 if (source .getBody () != null ) target .setBody (source .getBody ());
220220 if (source .getExpires () != null ) target .setExpires (source .getExpires ());
@@ -915,7 +915,7 @@ public BindException bindParameters(PropertyValues m) throws Exception
915915 public ModelAndView getInsertUpdateView (AnnouncementForm form , boolean reshow , BindException errors )
916916 {
917917 Permissions perm = getPermissions ();
918- AnnouncementModel parent = null ;
918+ AnnouncementFullModel parent = null ;
919919 Container c = getContainer ();
920920
921921 if (null != form .getParentId ())
@@ -2238,7 +2238,7 @@ protected DataRegion getDataRegion(Permissions perm, Settings settings)
22382238
22392239 public static class ThreadViewBean
22402240 {
2241- public AnnouncementModel announcementModel ;
2241+ public AnnouncementFullModel announcementModel ;
22422242 public String message = "" ;
22432243 public Permissions perm = null ;
22442244 public boolean isResponse = false ;
@@ -2259,7 +2259,7 @@ private ThreadView()
22592259 super ("/org/labkey/announcements/announcementThread.jsp" , new ThreadViewBean ());
22602260 }
22612261
2262- public ThreadView (Container c , ActionURL url , AnnouncementModel ann , Permissions perm )
2262+ public ThreadView (Container c , ActionURL url , AnnouncementFullModel ann , Permissions perm )
22632263 {
22642264 this ();
22652265 init (c , ann , url , perm , true , false );
@@ -2268,11 +2268,11 @@ public ThreadView(Container c, ActionURL url, AnnouncementModel ann, Permissions
22682268 public ThreadView (AnnouncementForm form , Container c , ActionURL url , Permissions perm , boolean print )
22692269 {
22702270 this ();
2271- AnnouncementModel ann = findThread (c , form .getAsString ("rowId" ), form .getAsString ("entityId" ));
2271+ AnnouncementFullModel ann = findThread (c , form .getAsString ("rowId" ), form .getAsString ("entityId" ));
22722272 init (c , ann , url , perm , false , print );
22732273 }
22742274
2275- protected void init (Container c , AnnouncementModel ann , URLHelper currentURL , Permissions perm , boolean isResponse , boolean print )
2275+ protected void init (Container c , AnnouncementFullModel ann , URLHelper currentURL , Permissions perm , boolean isResponse , boolean print )
22762276 {
22772277 if (null == c || !perm .allowRead (ann ))
22782278 {
@@ -2376,7 +2376,7 @@ public AnnouncementModel getAnnouncement()
23762376 }
23772377
23782378
2379- private static @ Nullable AnnouncementModel findThread (Container c , String rowIdVal , String entityId )
2379+ private static @ Nullable AnnouncementFullModel findThread (Container c , String rowIdVal , String entityId )
23802380 {
23812381 int rowId = 0 ;
23822382 if (rowIdVal != null )
0 commit comments