# Improve log clone message

**URL:** <https://farmos.discourse.group/t/improve-log-clone-message/1637>\
**Category:** Using farmOS\
**Tags:** feature-request\
**Created:** [May 8, 2023, 10:29pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637 "2023-05-08T22:29:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![paul121](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@paul121](https://farmos.discourse.group/u/paul121)\
**Post date:** [May 8, 2023, 10:29pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/1 "2023-05-08T22:29:53Z")

</div>

I noticed this while chatting with @AmberS and created a feature request in the log module: [https://www.drupal.org/project/log/issues/3358971](https://www.drupal.org/project/log/issues/3358971)

> After cloning one or more logs a status message is displayed: “Cloned {#} logs.” If the user is cloning a few particular logs in a site that has many existing logs it is easy to “lose” the newly cloned logs (in farmOS this commonly happens from the log table view). An easy solution would be to include links to the newly cloned log(s) in the status message and maybe include a link to the original log as well.

Raising this here in forum to ask what would others would find most useful as well. Is including links to each cloned log in the status message most useful? Would you like a link to the original log? What is the best way to phrase an updated status message? Other ideas?

![Screenshot from 2023-05-08 15-17-04](https://global.discourse-cdn.com/free1/uploads/farm_os/original/2X/b/b028e81375f9a658fb261f2accfc38bd341c26a1.png)

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 8, 2023, 10:31pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/2 "2023-05-08T22:31:43Z")

</div>

Only thought that comes to mind is: what happens if you bulk select a large number of logs and clone them all? Would that be too many status messages? Although maybe that’s too hypothetical and wouldn’t really happen in practice.

---

<div class="post-metadata">

**Author:** ![BOTLFarm](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/botlfarm/32/74_2.png) [@BOTLFarm](https://farmos.discourse.group/u/BOTLFarm)\
**Post date:** [May 9, 2023, 5:44pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/3 "2023-05-09T17:44:36Z")

</div>

I regularly clone 3-4 logs at a time then need to go back and make changes to them all. For me this is typically weekly feedings of all my animals. Same log with just different quantities. Having links to all the logs right after cloning would be super useful for making the subsequent changes needed.

What I would find more useful though is in the status message after saving a log a button to clone that same log again. I typically do all my record keeping once a week into farmOS so there ends up being a lot of cloning of the same log over and over again right in a row.

---

<div class="post-metadata">

**Author:** ![pat](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/pat/32/1050_2.png) [@pat](https://farmos.discourse.group/u/pat)\
**Post date:** [May 10, 2023, 6:07am UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/4 "2023-05-10T06:07:02Z")

</div>

> [@mstenta](#):
>
> Would that be too many status messages?

Is it possible to have an url in the status message that points to a table view of all the cloned messages?

Then up to 5 or so, could be listed in the message. Or bring up the table view if there was too many..

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 10, 2023, 12:51pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/5 "2023-05-10T12:51:12Z")

</div>

Good question @pat. If there was some way to query “cloned logs” in the database, we could just create a page like `/logs/cloned` or something, and sort by most recent (log timestamp? time of cloning?) and provide a link to that from the status message. I don’t think the database stores a record of the fact that a log was cloned, however. Adding that would require a database change as well.

It’s probably easiest to just implement this the simple way to start (show all status messages), and only solve this if it becomes an issue.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [May 10, 2023, 4:54pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/6 "2023-05-10T16:54:05Z")

</div>

Also, if we are going to do this we should make an equivalent PR/MR for the asset clone action ([farmOS/AssetClone.php at 2.x · farmOS/farmOS · GitHub](https://github.com/farmOS/farmOS/blob/2.x/modules/core/asset/src/Plugin/Action/AssetClone.php)) and merge them at the same time, for consistency.

---

<div class="post-metadata">

**Author:** ![mstenta](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/mstenta/32/4_2.png) [@mstenta](https://farmos.discourse.group/u/mstenta)\
**Post date:** [June 16, 2026, 6:53pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/7 "2026-06-16T18:53:46Z")

</div>

> [@BOTLFarm](#):
>
> What I would find more useful though is in the status message after saving a log a button to clone that same log again. I typically do all my record keeping once a week into farmOS so there ends up being a lot of cloning of the same log over and over again right in a row.

@BOTLFarm I just opened a feature request and I wonder if it would help your use-case: [Client Challenge](https://www.drupal.org/project/log/issues/3600941)

---

<div class="post-metadata">

**Author:** ![BOTLFarm](https://yyz2.discourse-cdn.com/free1/user_avatar/farmos.discourse.group/botlfarm/32/74_2.png) [@BOTLFarm](https://farmos.discourse.group/u/BOTLFarm)\
**Post date:** [June 17, 2026, 12:08pm UTC](https://farmos.discourse.group/t/improve-log-clone-message/1637/8 "2026-06-17T12:08:51Z")

</div>

> Then I cloned those 2 logs, then those 4, and then cloned 2 more to get to 10.

This is exactly what we have done in the past to create multiple of the same thing. I think this feature would be very useful to us. Thanks!
