Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-23294

Creating site from template containing linktool creates duplicate linktools

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: RESOLVED
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.9.x
    • Fix Version/s: None
    • Component/s: Linktool
    • Labels:
      None
    • Environment:
      Sakai 2.9.x (nightly)

      Description

      When creating a site from a template that has a linktool, the new site has two copies of the linktool created. I tracked this down to site-manage-tool/tool/src/java/org/sakaiproject/site/tool/SiteAction.java and was able to fix it with the following patch:

      @@ -10943,7 +10944,11 @@ public class SiteAction extends PagedResourceActionII

      { transversalMap.putAll(entityMap); }

      }else{

      • et.transferCopyEntities(fromContext, toContext, new Vector());
        + if ( "sakai.rutgers.linktool".equals(toolId) ) { + et.transferCopyEntities(fromContext, toContext, new Vector(),true); + }

        else

        { + et.transferCopyEntities(fromContext, toContext, new Vector()); + }

        }
        }
        } catch (Throwable t) {

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                • Assignee:
                  hedrick Charles Hedrick
                  Reporter:
                  conder@duke.edu Joseph Conder
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Git Integration