If it is South Australia you’re referring to it is in the Evidence Act 1929 s 34P - Evidence of discreditable conduct. Note however that there are exceptions and it is quite a tricky area.
Past history is one of the most confusing parts of Evidence. I have a very basic understanding of it but unless you are a lawyer you are never going to understand the nuances of when and how past history can be introduced.