Old battery is the case for the last one, paulotex.
As for the first the loom is the culpable, if the bike is a 08,09 1300 first edition model. Swiches were and in some cases (fu.....ing dealers are to blamed), still are. Thsi was an issue mainly on 11,12 production. A problem we still here today after so many years due to dealers tendency to use locally storage parts instead of the newest parts, fm Germany. This resulted to many owners go back to dealer with the same issue, the fortunate ones just a couple of days or weeks after the repair, this time with the right part installed but many unfortunate ones returning after a year or so ending up paying for the replacement part, as the campain was type 2 open only for a certain time period.
Do not have the information on your bike what type and year is as the profil is inconclusive.
Così ti consiglio per la prossima volta fateci sapere che tipo , modelo e anno di moto hai.